package com.maple.retry.controller;

import com.maple.retry.manager.SendSmsManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 发送短信
 * @Date 2020/12/29 5:43
 * @Created by 王弘博
 */
@RestController
public class RetryTaskController {

    @Autowired
    private SendSmsManager sendSmsManager;

    @GetMapping("/retryTask")
    public String test() {

        sendSmsManager.sendSms();

        return "OK";
    }
}
